import request from '@/utils/request'

// 大屏-环境信息
export function screenEnvironment(params) {
  return request({
    url: '/screen/config/environmentUrl',
    method: 'get',
    params
  })
}

// 大屏-业务信息
export function screenBusiness(params) {
  return request({
    url: '/screen/home/screenBusinessDetails',
    method: 'get',
    params
  })
}

// 大屏-产能信息
export function screenCapacity(params) {
  return request({
    url: '/screen/home/screenCapacityDetails',
    method: 'get',
    params
  })
}

// 大屏-宣传视频
export function screenPublicize(params) {
  return request({
    url: '/screen/config/publicizeUrl',
    method: 'get',
    params
  })
}

// 大屏-能耗信息
export function screenConsume(params) {
  return request({
    url: '/screen/home/screenConsumeDetails',
    method: 'get',
    params
  })
}

// 大屏-品质信息
export function screenQuality(params) {
  return request({
    url: '/screen/home/screenQualityDetails',
    method: 'get',
    params
  })
}

// 大屏-成本信息（饼图）
export function screenCostA(params) {
  return request({
    url: '/screen/home/screenCostDetailsA',
    method: 'get',
    params
  })
}

// 大屏-成本信息（柱状图）
export function screenCostB(params) {
  return request({
    url: '/screen/home/screenCostDetailsB',
    method: 'get',
    params
  })
}

// 大屏-品质分析（短）
export function screenQualityAnalyseA(params) {
  return request({
    url: '/screen/home/screenQualityAnalyseA',
    method: 'get',
    params
  })
}

// 大屏-品质分析（长）
export function screenQualityAnalyseB(params) {
  return request({
    url: '/screen/home/screenQualityAnalyseB',
    method: 'get',
    params
  })
}

// 大屏-业务信息-详情
export function businessDetails(params) {
  return request({
    url: '/screen/home/businessDetailsByDateType',
    method: 'get',
    params
  })
}

// 大屏-业务信息-统计
export function businessStatistics(params) {
  return request({
    url: '/screen/home/businessStatistics',
    method: 'get',
    params
  })
}

// 大屏-业务信息-排名
export function businessRanking(params) {
  return request({
    url: '/screen/home/businessRanking',
    method: 'get',
    params
  })
}

// 大屏-产能信息-详情
export function capacityDetails(params) {
  return request({
    url: '/screen/home/capacityDetailsByDateType',
    method: 'get',
    params
  })
}

// 大屏-产能信息-车间详情
export function capacityWorkshopDetails(params) {
  return request({
    url: '/screen/home/capacityWorkshopDetailsByDateType',
    method: 'get',
    params
  })
}

// 大屏-能耗信息-详情
export function consumeDetails(params) {
  return request({
    url: '/screen/home/consumeDetailsByDateType',
    method: 'get',
    params
  })
}

// 大屏-能耗信息-车间详情
export function consumeWorkshopDetails(params) {
  return request({
    url: '/screen/home/consumeWorkshopDetailsByDateType',
    method: 'get',
    params
  })
}

// 大屏-品质信息-整体
export function qualityOverall(params) {
  return request({
    url: '/screen/home/qualityOverallDetailsByDateType',
    method: 'get',
    params
  })
}

// 大屏-品质信息-总体详情
export function qualityWorkshopOverall(params) {
  return request({
    url: '/screen/home/qualityWorkshopOverallDetailsByDateType',
    method: 'get',
    params
  })
}

// 大屏-品质信息-车间详情
export function qualityWorkshopDetails(params) {
  return request({
    url: '/screen/home/qualityWorkshopDetailsByDateType',
    method: 'get',
    params
  })
}

// 大屏-品质信息-车间贡献
export function qualityWorkshopContribute(params) {
  return request({
    url: '/screen/home/qualityWorkshopContributeByDateType',
    method: 'get',
    params
  })
}

// 大屏-车间监控
export function screenMonitor(params) {
  return request({
    url: '/screen/monitor/list',
    method: 'get',
    params
  })
}

// 大屏-成本信息-物料统计
export function costWorkshopOverall(params) {
  return request({
    url: '/screen/home/costWorkshopOverallDetailsByDateTypeAndConsumeType',
    method: 'get',
    params
  })
}

// 大屏-成本信息-车间统计
export function costWorkshopDetails(params) {
  return request({
    url: '/screen/home/costWorkshopDetailsByDateTypeAndConsumeType',
    method: 'get',
    params
  })
}

// 大屏-成本信息-日期统计
export function costOverall(params) {
  return request({
    url: '/screen/home/costOverallDetailsByDateType',
    method: 'get',
    params
  })
}